<?php

namespace App\Http\Controllers\Api;

use App\Atransform\CategoryTransform;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Modules\Shop\Entities\Category;

class CategoryController extends XcxController
{
    public function category()
    {
//        获得所有的分类列表数据
        return $this->response->collection(Category::get(),new CategoryTransform());
    }
}
